package com.jwds.digital.bios.business.core.infrastructure.entity.belt;

import lombok.Data;
import lombok.EqualsAndHashCode;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jwds.tdc.framework.database.lib.BaseEntity;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 作业级别/路径级别 统计后的数据结构
 *
 * @author 林柏云
 * @date 2024-10-24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("belt_route_task_statistics")
public class BeltRouteTaskStatistics extends BaseEntity<Long> {


    /**
    * 作业ID
    */
    @TableField("task_id")
    private Long taskId;

    /**
     * 作业类型
     */
    @TableField("task_type")
    private String taskType;


    /**
    * 路径ID
    */
    @TableField("route_id")
    private Long routeId;


    /**
    * 开始执行时间
    */
    @TableField("start_execution_time")
    private LocalDateTime startExecutionTime;


    /**
    * 结束执行时间
    */
    @TableField("end_execution_time")
    private LocalDateTime endExecutionTime;


    /**
    * 持续时间
    */
    @TableField("duration")
    private BigDecimal duration;


    /**
    * 机械分数
    */
    @TableField("machine_score")
    private Integer machineScore;


    /**
    * 电气分数
    */
    @TableField("electric_score")
    private Integer electricScore;


    /**
    * 五防分数
    */
    @TableField("prevent_score")
    private Integer preventScore;


    /**
    * 尖峰耗电量
    */
    @TableField("spike_power_consumption")
    private BigDecimal spikePowerConsumption;


    /**
    * 峰值耗电量
    */
    @TableField("peak_power_consumption")
    private BigDecimal peakPowerConsumption;


    /**
    * 谷值耗电量
    */
    @TableField("valley_power_consumption")
    private BigDecimal valleyPowerConsumption;


    /**
    * 平值耗电量
    */
    @TableField("flat_power_consumption")
    private BigDecimal flatPowerConsumption;


    /**
    * 总耗电量
    */
    @TableField("total_power_consumption")
    private BigDecimal totalPowerConsumption;


    /**
    * 料流有料信号时间
    */
    @TableField("first_material_flow_time")
    private LocalDateTime firstMaterialFlowTime;


    /**
    * 最后料流无料信号时间
    */
    @TableField("last_material_flow_time")
    private LocalDateTime lastMaterialFlowTime;


    /**
    * 启动空载运行时长
    */
    @TableField("startup_no_load_duration")
    private BigDecimal startupNoLoadDuration;


    /**
    * 运行空载运行时长
    */
    @TableField("running_no_load_duration")
    private BigDecimal runningNoLoadDuration;


    /**
    * 停止空载运行时长
    */
    @TableField("shutdown_no_load_duration")
    private BigDecimal shutdownNoLoadDuration;


    /**
    * 运行负载运行时长
    */
    @TableField("running_load_duration")
    private BigDecimal runningLoadDuration;


    /**
    * 启动空载运行电耗
    */
    @TableField("startup_no_load_power")
    private BigDecimal startupNoLoadPower;


    /**
    * 运行空载运行电耗
    */
    @TableField("running_no_load_power")
    private BigDecimal runningNoLoadPower;


    /**
    * 停止空载运行电耗
    */
    @TableField("shutdown_no_load_power")
    private BigDecimal shutdownNoLoadPower;


    /**
    * 运行负载运行电耗
    */
    @TableField("running_load_power")
    private BigDecimal runningLoadPower;


    /**
    * 运输总重量
    */
    @TableField("total_transport_weight")
    private BigDecimal totalTransportWeight;


    /**
    * 作业效率
    */
    @TableField("work_efficiency")
    private BigDecimal workEfficiency;


    /**
    * 电机运行效率
    */
    @TableField("motor_running_efficiency")
    private BigDecimal motorRunningEfficiency;


    /**
    * 平均负载率
    */
    @TableField("avg_load_rate")
    private BigDecimal avgLoadRate;


    /**
    * 平均空载负载率
    */
    @TableField("avg_no_load_rate")
    private BigDecimal avgNoLoadRate;


    /**
    * 空载阻力
    */
    @TableField("no_load_resistance")
    private BigDecimal noLoadResistance;



}
